package com.yourcurtain.client.mvp.activity;

import com.google.gwt.activity.shared.AbstractActivity;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.yourcurtain.client.ClientFactory;
import com.yourcurtain.client.mvp.place.YourcurtainPlace;
import com.yourcurtain.client.mvp.view.YourcurtainView;

public class YourcurtainActivity extends AbstractActivity implements
		YourcurtainView.Presenter {

	private ClientFactory clientFactory;

	public YourcurtainActivity(YourcurtainPlace place,
			ClientFactory clientFactory) {
		this.clientFactory = clientFactory;

	}

	@Override
	public void start(AcceptsOneWidget containerWidget, EventBus eventBus) {
		YourcurtainView yourcurtainView = clientFactory.getYourcurtainView();
		yourcurtainView.setPresenter(this);
		containerWidget.setWidget(yourcurtainView.asWidget());
	}

	@Override
	public void goTo(Place place) {
		// TODO Auto-generated method stub

	}

}
